package com.ants.platform.core.listener;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

/**
 * Created by liushun on 2016/8/10.
 */
public class OnlineSessionListener implements HttpSessionListener {

    //创建session
    @Override
    public void sessionCreated(HttpSessionEvent httpSessionEvent) {
        System.out.println("################# 创建 session" + httpSessionEvent.getSession().getId());
    }

    //销毁session
    @Override
    public void sessionDestroyed(HttpSessionEvent httpSessionEvent) {

    }
}
